import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// Vue.config.productionTip = false;
// 公共方法
import './utils/common'
import './utils/flatmap'
// 时间格式转化
import DateUtil from './utils/date'
Vue.prototype.$DateUtil = DateUtil
// 树形数据处理
import TreeUtil from './utils/tree'
Vue.prototype.$listToTree = TreeUtil.listToTree
Vue.prototype.$getTreeData = TreeUtil.getTreeData

import VueJsonEditor from 'vue-json-editor'
Vue.component('VueJsonEditor', VueJsonEditor)

import CodeEditor from 'bin-code-editor'
import 'bin-code-editor/lib/styles/index.css'
Vue.use(CodeEditor)

import fiterNodes from './utils/filterNodes'
Vue.prototype.$fiterNodes = fiterNodes

// wps
import wps from './utils/wps-ext'
Vue.prototype.$Wps = wps
// http
import './request/http'

// ant-design-vue
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import { Icon } from 'ant-design-vue'
const IconFont = Icon.createFromIconfontCN({
  // scriptUrl: 'iconfont.js'
  scriptUrl: require('./components/Zzjg/icon/iconfont.js')
})
Vue.use(Antd)
Vue.component('IconFont', IconFont)

// element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI, { zIndex: 90000 })

import newTreeSelect from '@/components/newTreeSelect'
Vue.component('newTreeSelect', newTreeSelect)

import Echart from "./components/echart/index.vue";
Vue.component("Echart", Echart);

// 公共样式
import './assets/css/common.scss'
import './assets/css/main.scss'

// 组织机构样式
import './components/Zzjg/css/common.less'
import './components/Zzjg/css/theme.less'
import './components/Zzjg/css/uiStyle.less'
import './components/Zzjg/icon/iconfontStyle.css'
import './components/Zzjg/icon/iconfont.css'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
